var express = require('express');
var router = express.Router();// 路由
const OrdersApi = require("../api/order");




// 获取当页所有订单
router.get("/", async function (req, res, next) {
    const { curPage, eachPage } = req.query;
    console.log({ curPage, eachPage });
    const data = await OrdersApi.getOrder({ curPage, eachPage });
    res.send(data)
});

module.exports = router;

